<?php
/**
 * @author		João Batista Neto
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
namespace rpo\http\exception;

use rpo\http\exception\interfaces\AbstractClientException;
use \Exception;

/**
 * The server is refusing to service the request because the Request-URI is longer than the server
 * is willing to interpret.
 * <p>
 * This rare condition is only likely to occur when a client has improperly converted a POST request
 * to a GET request with long query information, when the client has descended into a URI "black hole"
 * of redirection (e.g., a redirected URI prefix that points to a suffix of itself), or when the server
 * is under attack by a client attempting to exploit security holes present in some servers using fixed-length
 * buffers for reading or manipulating the Request-URI.</p>
 * @author		João Batista Neto
 * @final
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
final class RequestURITooLongException extends AbstractClientException {
	/**
	 * Constroi o objeto da exceção
	 * @param string $message A exceção
	 * @param Exception $parent
	 */
	public function __construct( $message , Exception $previous = null ){
		parent::__construct( $message , 414 , $previous );
	}
}